package com.masterclient.app.modules.order.contract;

import com.eoner.baselibrary.base.BasePresenter;
import com.eoner.baselibrary.base.BaseView;
import com.eoner.baselibrary.bean.order.ConfirmOrderData;
import com.eoner.baselibrary.bean.order.CreateOrderData;
import com.eoner.baselibrary.bean.order.RefreshOrderData;
import com.eoner.baselibrary.bean.order.TradeStatusData;


public interface SubmitOrderContract {

    interface View extends BaseView {

        void confirm_order_success(ConfirmOrderData data);

        void confirm_order_failed(String msg);

        public void create_order_success(CreateOrderData data);

        void create_order_failed(String msg);

        void refresh_order_success(RefreshOrderData data);

        void refresh_order_failed(String msg);

        void get_trade_status_success(TradeStatusData data);

        void get_trade_status_failed(String msg);

    }


    abstract static class Presenter extends BasePresenter<View> {
        @Override
        public void onStart() {

        }

        public abstract void confirm_order(String buy_product, String buy_type, String charge_account,String sale_type,String relation_order_id,String is_custody);
        public abstract void create_order(String live_room_id,String buy_product,String buy_type,String coupon_id,String payment_id,String bupiao,
                                          String balance,String gold,String address_id,String customs_clearance_id,String customs_clearance_agreement,
                                          String remark,String invoice, String charge_account,String sale_type,String freight_type,String relation_order_id,String is_custody);

        public abstract void refresh_order(String buy_product,String buy_type,String coupon_id,String address_id,
                                           String customs_clearance_id,String bupiao
                ,String balance,String gold,String sale_type,String freight_type,String relation_order_id,String is_custody);

        public abstract void get_trade_status(String trade_no);
    }
}